#include "Effect.h"
#include "DXUT.h"

void Effect::Load(LPCWSTR filename)
{
	HRESULT hr;
	V(D3DXCreateEffectFromFile(TheD3DApp::Instance()->GetD3DDev(),filename,NULL,NULL,0,NULL,&m_pEffect,NULL));
}

ID3DXEffect* Effect::GetEffect()
{
	return m_pEffect;
}

void Effect::Clean()
{
}
D3DXHANDLE Effect::GetTech()
{
	return m_Tech;
}
void Effect::SetTech(D3DXHANDLE name)
{
	m_Tech = name;
}